package com.jdd.modules.form.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdd.modules.form.entity.FormParkTotalInfo;
import com.jdd.modules.form.mapper.FormParkTotalInfoMapper;
import com.jdd.modules.form.service.IFormParkTotalInfoService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 停车场每日统计表
 * @Author: jdd
 * @Date: 2021-03-12
 * @Version: V1.0
 */
@Service
public class FormParkTotalInfoServiceImpl extends ServiceImpl<FormParkTotalInfoMapper, FormParkTotalInfo> implements IFormParkTotalInfoService {
    @Resource
    private FormParkTotalInfoMapper formParkTotalInfoMapper;

    /**
     * 查看停车场每日统计表内的数据，且指定时间
     *
     * @param endTime   查询条件：截至时间
     * @param startTime 查询条件：起始时间
     * @return 根据查询条件查询到的停车场每日统计表中的数据
     **/
    @Override
    public List<FormParkTotalInfo> listNoParkCode(@Param("startTime") String startTime, @Param("endTime") String endTime) {
        return formParkTotalInfoMapper.listNoParkCode(startTime, endTime);
    }
}
